package com.fjut.zr.judge_system.Util;

public class strLen {
    public static int getLength(String s) {
           int length = 0;
            for (int i = 0; i < s.length(); i++) {
            int ascii = Character.codePointAt(s, i);
                   if (ascii >= 0 && ascii <= 255) {
                           length++;
            } else {
                length += 2;
                       }
               }
            return length;
        }
}
